package com.xx.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * hystix 参考资料：
 * https://blog.csdn.net/qq_52421664/article/details/120373025   服务熔断和服务降级
 * https://zhuanlan.zhihu.com/p/353753774   大白话详解Spring Cloud服务降级与熔断
 */
@FeignClient(value = "provider-00", fallback = FeignHystricService.class)
public interface FeignService {

    // openfeign 支持springmvc注解
    @RequestMapping(value = "/info", method = RequestMethod.GET)
    String info1();

    @RequestMapping(value = "/info", method = RequestMethod.GET)
    String info2();
}
